<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
 
<!-- All Spring messages used in this view are declared below with a variable -->
<spring:message code="customer.resetpassword_lbl" var="reset_lbl"/>
<spring:message code="customer.reset_btn" var="reset_btn"/>
<spring:message code="customer.username_lbl" var="username_lbl"/>
<spring:message code="customer.emailaddress_lbl" var="emailaddress_lbl"/>

<!-- Body -->
<div class="panel panel-default" >
    <div class="panel-heading" >${reset_lbl}</div>    
    <form:form class="form-horizontal" id="resetForm" action="${pageContext.request.contextPath}/customer/passwordreset" method="post" modelAttribute="customerViewmodel">
        <div class="panel-body container-fluid">
            <div class="row">
                <div class="form-group">
                    <label class="col-md-2 control-label">${username_lbl}</label>
                    <div class="col-md-4">
                        <form:input class="form-control" type='text' path='burritoUser.username' placeholder="${username_lbl}"/>
                        <%--<form:errors path="username" cssClass="error" />--%>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-2 control-label">${emailaddress_lbl}</label>
                    <div class="col-md-4">
                        <form:input class="form-control" type='text' path='customer.email' placeholder="${emailaddress_lbl}"/>                            
                        <%--<form:errors path="email" cssClass="error" />--%>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-2"></div>
                <input class="btn" id="submit" name="submit" type="submit" value="${reset_btn}"/>
            </div>
        </div>
    </form:form>
</div>
